package functionInterfaces;

public class FunctionInterfaceDemo2 {

    public FunctionInterfaceDemo2(B b){
        b.b();
    }

    public static void main(String[] args) {

        new FunctionInterfaceDemo2(()-> System.out.println("bbbbbbbbbbbbbbbbbbbb"));

    }
}

interface B {
    void b();
}

